<?php Yii::import('ext.imperavi-redactor.ImperaviRedactorWidget'); ?>
<div class="form " style="text-align: left">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'update-help-form',
	'enableClientValidation'=>true,
	'htmlOptions' => array(
		'class' => 'form-horizontal',
	)
)); ?>
  <!-- address-line2 input-->
    <div class="control-group">
        <?php echo $form->labelEx($model,'title'); ?>
        <div class="controls">
            <?php echo $form->textField($model,'title', array('class' => 'span12')); ?>
        </div>
        <?php echo $form->error($model,'title'); ?>
    </div>
  <!-- address-line2 input-->
    <div class="control-group">
        <?php echo $form->labelEx($model,'content'); ?>
        <div class="controls">
			<?php
				$this->widget('ImperaviRedactorWidget', array(
					// you can either use it for model attribute
					'model' => $model,
					'attribute' => 'content',
				));
			?>
        </div>
        <?php echo $form->error($model,'content'); ?>
    </div>
    <div class="form-actions">
        <button type="submit" class="btn btn-success">Update</button>
        <button type="reset" class="btn" >Reset</button>
    </div>
<?php $this->endWidget(); ?>
</div><!-- form -->
